package com.heima.comment.feign;

import com.heima.comment.entity.ApUser;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @BelongsProject: heima-leadnews
 * @BelongsPackage: com.heima.comment.feign
 * @Author: wangjian
 * @CreateTime: 2022-07-05  23:50
 * @Description: TODO
 * @Version: 1.0
 */@FeignClient("leadnews-user")

public interface UserFeign {
/**
 * @description: 根据id查询用户
 * @author: wangjian
        * @date: 2022/7/5 23:50
 * @param: id
 * @return: ResponseResult<ApUser>
 **/
    @GetMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> getById(@PathVariable("id") Integer id);



}
